package juc.vt;

import java.util.concurrent.Semaphore;

/*jdk21虚拟线程*/
public class VTThread {
    public static void main(String[] args) throws Exception {
        Thread t1 = Thread.ofVirtual().start(() -> {
            System.out.println(Thread.currentThread());
        });
        t1.join();
        System.out.println(Thread.currentThread());

    }
}